import java.util.Scanner;

public class demo6 {
    public static void main(String[] args) {
            Scanner scanner=new Scanner(System.in);
        System.out.println("X:");
        double a= scanner.nextInt();
        System.out.println("Y:");
        double b= scanner.nextInt();
        System.out.println("Z:");
        double c= scanner.nextInt();
        double S=A(a,b,c);
        System.out.println(S);
    }
    public static double A(double X,double Y,double Z){
        return X*X*X+Y*Y*Y+Z*Z*Z;
    }
}
